<form id="pagerForm" method="post" action="">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="{$orderField}" />
	<input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type="hidden" name="keywords" value="{$keywords}" />
	<input type="hidden" name="sfield" value="{$sfield}" />
	<input type="hidden" name="platform" value="{$platform}" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="m" value="{$module_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<ul class="searchContent">
			<li style="width:210px;">
				<label style="width:60px;">关键字：</label>
				<input type="text" name="keywords" value="{$keywords}"/>
			</li>
			<li style="width:60px;">
			<select name="sfield" class="combox">
				<option value="all" {if $sfied=='all'}selected="selected"{/if}>全部</option>
				<option value="id" {if $sfied=='id'}selected="selected"{/if}>编号</option>
				<option value="element" {if $sfied=='element'}selected="selected"{/if}>标识</option>
				<option value="title" {if $sfied=='title'}selected="selected"{/if}>名称</option>
			</select>
			<input type="hidden" name="sfield_name" value="id,element,title" />
			</li>
			<li>
				<select name="platform">
					<option value="all" {if $platform=='all'||empty($platform)}selected="selected"{/if}>全部</option>
					<volist name="sysplatform" id="s">
						<option value="{$s['value']}" {if $platform==$s['value']}selected="selected"{/if}>{$s['title']}</option>
					</volist>
				</select>
			</li>
			<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
		</ul>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="{:U('Sys/add',$param)}" target="dialog" width="580" height="350" rel="User_add"><span>添加设置</span></a></li>
			<li><a class="edit" href="{:U('Sys/edit')}&id={sid_dv}" target="dialog" width="580" height="350" warn="请选择一个用户"><span>修改设置</span></a></li>
			<li><a class="icon" href="javascript:$.printBox('user_list')"><span>打印</span></a></li>
		</ul>
	</div>
	<div id="user_list">
	<table class="table" layoutH="110">
		<thead>
			<tr>
				<th width="30"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
				<th width="60" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>编号</th>
				<th width="100" orderField="title" {if $orderField=='username'}class="{$orderDirection}"{/if}>名称</th>														
				<th width="100" orderField="element" {if $orderField=='mobile'}class="{$orderDirection}"{/if}>标识</th>
				<th width="500" orderField="value" {if $orderField=='value'}class="{$orderDirection}"{/if}>内容</th>
				<th width="80" orderField="platform" {if $orderField=='platform'}class="{$orderDirection}"{/if}>平台</th>
				<th width="120">编辑</th>
			</tr>
		</thead>
		<tbody>
<volist name="list" id="vo">
			<tr target="sid_dv" rel="{$vo['id']}">
				<td><input name="ids[]" value="{$vo['id']}" type="checkbox"></td>
				<td>{$vo['id']}</td>
				<td><a title="查看" target="dialog" width="580" height="450" rel="Sys_detail_{$vo['id']}" href="{:U('Sys/detail',array('id'=>$vo['id']))}">{$vo['title']}</a></td>
				<td>{$vo['element']}</td>
				<td>{$vo['value']}</td>
				<td>{if $vo['platform']=='ALL'}全部{else}{$sysplatform[$vo['platform']]['title']}{/if}</td>
				<td>
					<a title="编辑" target="dialog" width="580" height="350"  rel="Sys_edit_{$vo['id']}" href="{:U('Sys/edit',array('id'=>$vo['id']))}" class="btnEdit">编辑</a>
				</td>
			</tr>
</volist>
		</tbody>
	</table>
	</div>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" {if $numPerPage==20}selected="selected"{/if}>20</option>
				<option value="50" {if $numPerPage==50}selected="selected"{/if}>50</option>
				<option value="66" {if $numPerPage==66}selected="selected"{/if}>66</option>
				<option value="100" {if $numPerPage==100}selected="selected"{/if}>100</option>
				<option value="200" {if $numPerPage==200}selected="selected"{/if}>200</option>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$pageNum}"></div>
	</div>
</div>
